/*
 * msgq_utils.h
 *
 *  Created on: 15/11/2012
 *      Author: julian
 */

#ifndef MSGQ_UTILS_H_
#define MSGQ_UTILS_H_

#include <sys/types.h>

int msgq_timer_create();

int msgq_timer_delete();

int msgq_timed_recv(int msqid, void *qbuf, unsigned int size, unsigned long mtype, unsigned int timeout_msec, unsigned int timeout_sec);

int msgq_receive(int msqid, void *buf, unsigned long type, unsigned int size, int flags);

int msgq_send(int msqid, void * buf, unsigned int size, int flags);

int msgq_create(key_t key);

int msgq_link(key_t key);

int msgq_destroy(int msqid);


#endif /* MSGQ_UTILS_H_ */
